<template>
  <a-result
    class="sl-status h-full flex items-center justify-center flex-col"
    title="数据加载失败"
    sub-title="别紧张，请稍后刷新重试"
  >
    <template #icon>
      <Icon type="icon-shujujiazaishibai" />
    </template>
    <template #extra>
      <a-button type="primary" @click="reload">刷新页面</a-button>
    </template>
  </a-result>
</template>
<script lang="ts" setup>
import Icon from "/@/components/Icon.vue";
import router, { AIOT_ROUTE_NAME } from "/@/router";

function reload() {
  // location.reload();
  router.replace("/" + AIOT_ROUTE_NAME).then(() => {
    // location.reload();
  });
}
</script>
